﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.ScheduleJob.SPI
{
    /// <summary>
    /// 统一的计划任务服务调用接口
    /// </summary>
    public interface IScheduleJobService
    {
        ScheduleJobInstance CreateScheduleJobInstance(string jobId);
        ScheduleJobInstance StartJob(ScheduleJobInstance instance);
        void PauseJob(string instanceID);
        void ResumeJob(string instanceID);
        void ResumeAllJobs();
        void DeleteJob(string instanceID);
    }
}
